package com.prs.crm.domain.oa;

import java.util.List;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Dept;

/**
 * OA信息发布主页
 * @author zhoupeng 2012-3-30
 *
 */
@Entity
@Table(name="oa_homepage")
public class HomePage extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@ManyToOne
	private HomePageType type;
	@ManyToOne
	private Dept dept;
	private String admin;  //管理员
	private String adminId;
	private String browse;  //可浏览人员
	private String browseId;
	private String post;  //可发帖人员
	private String postId;
	//文章分类
	@OneToMany(fetch=FetchType.LAZY,mappedBy="page")
	private List<ArticleType> articleTypes;
	
	private String managerState;
	private String showState;
	private String postState;
	public String getManagerState() {
		return managerState;
	}
	public void setManagerState(String managerState) {
		this.managerState = managerState;
	}
	public String getShowState() {
		return showState;
	}
	public void setShowState(String showState) {
		this.showState = showState;
	}
	public String getPostState() {
		return postState;
	}
	public void setPostState(String postState) {
		this.postState = postState;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public HomePageType getType() {
		return type;
	}
	public void setType(HomePageType type) {
		this.type = type;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public String getAdmin() {
		return admin;
	}
	public void setAdmin(String admin) {
		this.admin = admin;
	}
	public String getBrowse() {
		return browse;
	}
	public void setBrowse(String browse) {
		this.browse = browse;
	}
	public String getPost() {
		return post;
	}
	public void setPost(String post) {
		this.post = post;
	}
	public String getAdminId() {
		return adminId;
	}
	public void setAdminId(String adminId) {
		this.adminId = adminId;
	}
	public String getBrowseId() {
		return browseId;
	}
	public void setBrowseId(String browseId) {
		this.browseId = browseId;
	}
	public String getPostId() {
		return postId;
	}
	public void setPostId(String postId) {
		this.postId = postId;
	}
	public List<ArticleType> getArticleTypes() {
		return articleTypes;
	}
	public void setArticleTypes(List<ArticleType> articleTypes) {
		this.articleTypes = articleTypes;
	}
	
}
